package study.google.api;

import com.google.api.translate.Language;
import com.google.api.translate.Translate;

public class Main {
  public static void main(String[] args) throws Exception {
    // Set the HTTP referrer to your website address.
	  Translate.setHttpReferrer("http://harmony-i18n-tool.googlecode.org");

    String translatedText = Translate.execute("Hello World!", Language.ENGLISH,Language.CHINESE);
    
    System.out.println(translatedText);
    
  String translatedText2 = Translate.execute("test", Language.ENGLISH,Language.CHINESE);
    
    System.out.println(translatedText2);
  }
}